package com.itheima.tliasmanager.utils;

/**
 * 上下文对象
 */
public class ApplicationContext {

    private static ThreadLocal<Integer> threadLocal = new ThreadLocal();

    public static Integer getEmpId(){
        return threadLocal.get();
    }

    public static void setEmpId(Integer id){
        threadLocal.set(id);
    }

    public  static  void  clear(){
        threadLocal.remove();
    }
}
